<!doctype html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{{title}}</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='css/bootstrap.min.css') }}">
    <link rel="stylesheet" type="text/css" href=" {{ url_for('static',filename='css/nprogress.css') }}">
    <link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='css/style.css') }}">
    <link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='css/font-awesome.min.css') }}">
    <link rel="apple-touch-icon-precomposed" href="{{ url_for('static',filename='images/icon.png') }}">
    <link rel="shortcut icon" href="{{ url_for('static',filename='images/favicon.ico') }}">
    <script src="{{ url_for('static',filename='js/jquery-2.1.4.min.js') }}"></script>
    <script src="{{ url_for('static',filename='js/nprogress.js') }}"></script>
    <script src="{{ url_for('static',filename='js/jquery.lazyload.min.js') }}"></script>

    <!--[if lt IE 9]>
  <script>window.location.href='upgrade-browser.html';</script>
<![endif]-->
</head>

<body class="user-select">
    <header class="header">
        <nav class="navbar navbar-default" id="navbar">
            <div class="container">
                
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#header-navbar" aria-expanded="false"> <span class="sr-only"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
                    <h1 class="logo hvr-bounce-in">
                        <a href="#" title="木庄网络博客"><img src="{{ url_for('static',filename='images/201610171329086541.png') }}" alt="木庄网络博客"></a>
                    </h1>
                </div>
                <div class="collapse navbar-collapse" id="header-navbar">
                    <form class="navbar-form visible-xs" action="/Search" method="post">
                        <div class="input-group">
                            <input type="text" name="keyword" class="form-control" placeholder="请输入关键字" maxlength="20" autocomplete="off">
                            <span class="input-group-btn">
		<button class="btn btn-default btn-search" name="search" type="submit">搜索</button>
		</span> </div>
                    </form>
                    <ul class="nav navbar-nav navbar-right">
                        <li><a data-cont="" title="" href="{{ url_for("index") }}">首页</a></li>
                        <li><a data-cont="列表页" title="列表页" href="list.html">列表页</a></li>
                        <li><a data-cont="详细页" title="详细页" href="show.html">详细页</a></li>

                         {% if current_user.is_authenticated %}
                        <li><a data-cont=""  href="/users/{{ current_user.id }}">{{ current_user.username }}</a></li>
                             <li><a data-cont="404" title="404" href="{{ url_for('loginout') }}">退出</a></li>
                        {%  else %}
                             <li><a data-cont="404" title="404" href="{{ url_for('login') }}">登录</a></li>
                        <li><a data-cont="404" title="404" href="{{ url_for('register') }}">注册</a></li>
                         {% endif %}
                        
                    </ul>
                </div>
            </div>
        </nav>
    </header>
    <section class="container">
        <div class="content-wrap">
            <div class="content">

            
                {% block contents %} {% endblock contents %}


            </div>
        </div>
        <aside class="sidebar">
            <div class="fixed">
           
                <div class="widget widget_search">
                    <form class="navbar-form" action="/Search" method="post">
                        <div class="input-group">
                            <input type="text" name="keyword" class="form-control" size="35" placeholder="请输入关键字" maxlength="15" autocomplete="off">
                            <span class="input-group-btn">
		<button class="btn btn-default btn-search" name="search" type="submit">搜索</button>
		</span> </div>
                    </form>
                </div>
            </div>
            <div class="widget widget_hot">
                <h3>最新评论文章</h3>
                <ul>

                    <li><a title="用DTcms做一个独立博客网站（响应式模板）" href="#"><span class="thumbnail">
				<img class="thumb" data-original="static/images/201610181739277776.jpg" src="{{ url_for('static',filename='images/201610181739277776.jpg') }}" alt="用DTcms做一个独立博客网站（响应式模板）"  style="display: block;">
			</span><span class="text">用DTcms做一个独立博客网站（响应式模板）</span><span class="muted"><i class="glyphicon glyphicon-time"></i>
				2016-11-01
			</span><span class="muted"><i class="glyphicon glyphicon-eye-open"></i>88</span></a></li>

                </ul>
            </div>

            <div class="widget widget_sentence">
                <h3>友情链接</h3>
                <div class="widget-sentence-link">
                    <a href="#" title="网站建设" target="_blank">邢台网</a>&nbsp;&nbsp;&nbsp;
                </div>
            </div>
        </aside>
    </section>
    <footer class="footer">
        <div class="container">
            <p>Copyright &copy; 2016.Company name All rights reserved.More Templates <a href="http://www.cssmoban.com/" target="_blank" title="模板之家">模板之家</a> - Collect from <a href="http://www.cssmoban.com/" title="网页模板" target="_blank">网页模板</a></p>
        </div>
        <div id="gotop">
            <a class="gotop"></a>
        </div>
    </footer>
    <script src="{{ url_for('static',filename='js/bootstrap.min.js') }}"></script>
    <script src="{{ url_for('static',filename='js/jquery.ias.js') }}"></script>
    <script src="{{ url_for('static',filename='js/scripts.js') }}"></script>
</body>

</html>